import request from '@/utils/request'

const baseUrl = '/spoken/teacherTag'

// 查询教师分类列表
export function listTeacherTag(query) {
  return request({
    url: baseUrl +'/list',
    method: 'get',
    params: query
  })
}

// 查询教师分类详细
export function getTeacherTag(tagId) {
  return request({
    url: baseUrl + '/' + tagId,
    method: 'get'
  })
}

// 新增教师分类
export function addTeacherTag(data) {
  return request({
    url: baseUrl,
    method: 'post',
    data: data
  })
}

// 修改教师分类
export function updateTeacherTag(data) {
  return request({
    url: baseUrl,
    method: 'put',
    data: data
  })
}

// 删除教师分类
export function deleteTeacherTag(tagId) {
  return request({
    url: baseUrl + '/' + tagId,
    method: 'delete',
  })
}
